﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SinsenWeb.Helpers;
using SinsenWeb.Models;
using SinsenWeb.Models.ViewDataTypes;

namespace SinsenWeb.Controllers
{
    public class SubControllerController: BaseController
    {
        public ActionResult MemberFooter()
        {
            var onlineMembers = Member.FindAll();
            ViewData["online"] = onlineMembers;
            return View();
        }

        public ActionResult RightColumn()
        {
            // Pick a recent rumor
            // pick a statistic
            // pick a recent poll
            // show contact info if not logged in
            return View();
        }

        public ActionResult Messages()
        {
            var messages = MessageHelper.GetAndClearMessages();
            var alerts = MessageHelper.GetAndClearAlerts();
            
            return View(new MessageContainer{Alerts = alerts, Messages = messages});
        }
    }
}
